package com.voc.im.bean;

import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;

public class ChatLast {

    private IntegerProperty id;
    private IntegerProperty uid;
    private IntegerProperty tid;

    public ChatLast(int id,int uid, int tid) {
        setId(id);
        setUid(uid);
        setTid(tid);
    }


    public int getId() {
        return idProperty().get();
    }

    public IntegerProperty idProperty() {
        if (id == null) {
            id = new SimpleIntegerProperty();
        }
        return id;
    }

    public void setId(int id) {
        this.idProperty().set(id);
    }

    public int getUid() {
        return uidProperty().get();
    }

    public IntegerProperty uidProperty() {
        if (uid == null) {
            uid = new SimpleIntegerProperty();
        }
        return uid;
    }

    public void setUid(int uid) {
        this.uidProperty().set(uid);
    }

    public int getTid() {
        return tidProperty().get();
    }

    public IntegerProperty tidProperty() {
        if (tid == null) {
            tid = new SimpleIntegerProperty();
        }
        return tid;
    }

    public void setTid(int tid) {
        this.tidProperty().set(tid);
    }
}
